import Vue from "vue"
import Vuex from "vuex"
import VuePersist from "vuex-persist"
import state from './state'
import mutations from "./mutations"
import actions from "./actions"
Vue.use(Vuex);

//初始化本地存储插件配置
const persist = new VuePersist({
    storage:window.sessionStorage
})

export default new Vuex.Store({
    plugins:[persist.plugin],
    strict:true,
    state,
    mutations,
    actions
})